package lab02.test06;

public class Test06 {
    public static void main(String[] args) {
        Triangle triangle = new Triangle();
        triangle.setEdge1(5);
        triangle.setEdge2(8);
        triangle.setEdge3(6);
        triangle.modifyEdge1(6);        //修改第一条边
        triangle.Boolean();
        triangle.countArea();
        triangle.countCircumference();
        System.out.println(triangle.toString());

        Ladder ladder = new Ladder();
        ladder.upperedge = 4;
        ladder.bottomedge = 8;
        ladder.height = 6;
        System.out.println("梯形面积 = " + ladder.countArea());

        Circle circle =new Circle();
        circle.radius = 6;
        System.out.println("圆面积 = " + circle.reckonArea());
        System.out.println("圆周长 = " + circle.reckonCircumference());
    }
}
